import { ComponentType, type IResult } from 'vc/src/web';

export function useScreen() {
  const queryData = reactive({
    pageNum: 1,
    pageSize: 10,
    companyId: '',
    indicatorFiled: '100111',
    indicatorOrder: 'desc',
    indicatorType: 'allPurpose',
    industryCode: '',
    industryCategoryType: '',
    name: '',
    statisticalPeriod: '',
    indicatorCodes: '',
    currencyType: ''
  });

  const menus = ref([
    {
      title: '银行',
      component: ComponentType.SINGLE,
      options: [],
      value: '',
      required: true,
      submitFn: (val: string) => {}
    },
    {
      title: '年度',
      component: ComponentType.SINGLE,
      options: [],
      value: '',
      required: true,
      submitFn: (val: string) => {}
    },
    {
      title: '指标',
      component: ComponentType.CASCADER,
      options: [],
      value: '',
      submitFn: (val: string) => {}
    },
    {
      title: '币种',
      component: ComponentType.SINGLE,
      options: [],
      value: '',
      submitFn: (val: string) => {}
    }
  ]);

  const traceSource = ref(false);

  return {
    queryData,
    menus,
    traceSource
  };
}
